# -*- coding: utf-8 -*-
#
# File: ARFilePreview/events.py
#
#
#

"""
$Id$
"""

__author__ = """Jean-Nicolas Bès <contact@atreal.net>"""
__docformat__ = 'plaintext'
__licence__ = 'GPL'

# from Acquisition import aq_base

from Products.ARFilePreview.interfaces import IPreviewable,ICountable

def updateCountNumber(obj,event):
    ICountable(obj).updateCount()
    
def updateModified(obj,event):
    #print "modified time"
    IPreviewable(obj).updateModified()    
    
def buildAndStorePreview(obj, event):
    """ """
    print "BUILD AND STORE PREVIEW %s" % ( obj.getPhysicalPath() , )
    IPreviewable(obj).buildAndStorePreview()
